package com.example.springbootsfzy.service.gengyifei;

import com.example.springbootsfzy.domain.ConsultantFieldAssociations;
import com.example.springbootsfzy.mapper.ConsultantFieldAssociationsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class consultant_field_associations_service {
    @Autowired
    private ConsultantFieldAssociationsMapper mapper;

    //通过  主键 删除咨询师擅长领域关联表
    public int deleteByPrimaryKey(int id){
        return mapper.deleteByPrimaryKey(id);
    }


    //通过 参数  静态插入咨询师擅长领域关联表
    public int insert(ConsultantFieldAssociations record){
        return mapper.insert(record);
    }


    //通过  参数  动态修改咨询师擅长领域关联表
    public int  updateByPrimaryKeySelective(ConsultantFieldAssociations record){
        return mapper.updateByPrimaryKeySelective(record);
    }

    //通过主键  查询咨询师擅长领域关联表
    public ConsultantFieldAssociations selectByPrimaryKey(int id){
        return mapper.selectByPrimaryKey(id);
    }

    //查询所有 咨询师擅长领域关联表
    public List<ConsultantFieldAssociations> selectAll(){
        return mapper.selectAll();
    }
}
